package com.miniprogram.admin.service.impl;

import com.miniprogram.bean.po.AdminPermission;
import com.miniprogram.admin.mapper.AdminPermissionMapper;
import com.miniprogram.admin.service.IAdminPermissionService;
import com.miniprogram.common.service.BaseServiceImpl;
import org.springframework.stereotype.Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 后台权限表 服务实现类
 * </p>
 *
 * @author lin
 * @since 2022-06-21
 */
@Service
@Slf4j
@Transactional(rollbackFor = Exception.class)
public class AdminPermissionServiceImpl extends BaseServiceImpl<AdminPermissionMapper, AdminPermission> implements IAdminPermissionService {

    @Override
    public List<AdminPermission> findByAccount(String account) {
        return this.baseMapper.findByAccount(account);
    }
}
